import type { MarkdownRenderer } from 'vitepress'
import mdContainer from 'markdown-it-container'

import createDemoContainer from '../plugins/demo'

export function mdPlugin(md: MarkdownRenderer) {
  md.use(mdContainer, 'demo', createDemoContainer(md))
}
